﻿using System;
using System.Collections.Generic;
using System.Web.Script.Serialization;
using Taype.Trading.BTC.Utilities;

namespace Taype.Trading.BTC.TradeHillAPIClient.JSONObjects
{

    /// <summary>
    /// Dictionary of Currency, Amount pairs. Also returns XXX_Available which represents the balance which is actually available for trading. Also returns XXX_Reserved which represents the amount of funds which have been reserved due to open market orders or open withdrawal requests. 
    /// </summary>
    public class TradeHillBalanceInfo
    {

        public double AUD_Available { get; set; }
        public double BTC_Available { get; set;}
        public double CAD_Available  { get; set;}
        public double CLP_Available  { get; set;}
        public double EUR_Available  { get; set;}
        public double INR_Available  { get; set;}
        public double LR_Available  { get; set;}
        public double USD_Available { get; set;}

        public static List<TradeHillBalanceInfo> getObjects(string jsonDataStr)
        {
            throw new NotImplementedException();
            List<TradeHillBalanceInfo> tradeList = new List<TradeHillBalanceInfo>();
            string json = jsonDataStr;
            var serializer = new JavaScriptSerializer();
            serializer.RegisterConverters(new[] { new DynamicJsonConverter() });
            dynamic obj = serializer.Deserialize(json, typeof(object));
            return tradeList;
        }
    }
}
